package com.lagou.product;

import org.apache.ibatis.annotations.Mapper;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;

@SpringBootApplication
@MapperScan("com.lagou.product.mapper")
//@EnableEurekaClient//当前项目作为EurekaClient注册到当前项目作为Eureka Server
@EnableDiscoveryClient//也是将当前项目标识为注册中心的客户端，向注册中心进行注册
public class ProductApplication9001 {

    public static void main(String[] args) {
        SpringApplication.run(ProductApplication9001.class,args);
    }

}
